package com.zhejiangzhengyuan.municipal_common.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * @author lin_ju
 * Create on 2019/12/27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "SubjectDto", description = "新增编辑")
public class SubjectDto {
    @ApiModelProperty(value = "自增主键,唯一标识")
    private Long id;

    @ApiModelProperty(value = "认证主体名称，常为用户名", required = true)
    @NotBlank(message = "常为用户名不能为空")
    private String subjectName;

    @ApiModelProperty(value = "认证主体名称，常为用户名", required = true)
    @NotBlank(message = "常为用户名不能为空")
    private String passWord;

    @ApiModelProperty(value = "用户性别，关联字典条目表")
    private String gender;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "用户工作工号")
    private String wordNum;

    @ApiModelProperty(value = "用户单位职位")
    private String position;

    @ApiModelProperty(value = "用户联系电话")
    private String phoneNum;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "角色集合")
    private String roleNameIds;

    @ApiModelProperty(value = "部門集合")
    private String departmentIds;

    @ApiModelProperty(value = "若需要集成钉钉，且需要存储用户信息，以此id为关联")
    private String dingtalkUserId;



}
